package com.ksd.system.service.impl;

import com.ksd.system.domain.SysChannelTwice;
import com.ksd.system.mapper.SysChannelTwiceMapper;
import com.ksd.system.service.ISysChannelTwiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 频道管理Service业务层处理
 * 
 * @author y.wu
 * @date 2025-01-08
 */
@Service
public class SysChannelTwiceServiceImpl implements ISysChannelTwiceService
{
    @Autowired
    private SysChannelTwiceMapper sysChannelTwiceMapper;

    /**
     * 查询频道管理
     * 
     * @param id 频道管理主键
     * @return 频道管理
     */
    @Override
    public SysChannelTwice selectSysChannelById(Long id)
    {
        return sysChannelTwiceMapper.selectSysChannelById(id);
    }

    /**
     * 查询频道管理列表
     * 
     * @param sysChannel 频道管理
     * @return 频道管理
     */
    @Override
    public List<SysChannelTwice> selectSysChannelList(SysChannelTwice sysChannel)
    {
        return sysChannelTwiceMapper.selectSysChannelList(sysChannel);
    }

    /**
     * 新增频道管理
     * 
     * @param sysChannel 频道管理
     * @return 结果
     */
    @Override
    public int insertSysChannel(SysChannelTwice sysChannel)
    {
        return sysChannelTwiceMapper.insertSysChannel(sysChannel);
    }

    /**
     * 修改频道管理
     * 
     * @param sysChannel 频道管理
     * @return 结果
     */
    @Override
    public int updateSysChannel(SysChannelTwice sysChannel)
    {
        return sysChannelTwiceMapper.updateSysChannel(sysChannel);
    }

    /**
     * 批量删除频道管理
     * 
     * @param ids 需要删除的频道管理主键
     * @return 结果
     */
    @Override
    public int deleteSysChannelByIds(Long[] ids)
    {
        return sysChannelTwiceMapper.deleteSysChannelByIds(ids);
    }

    /**
     * 删除频道管理信息
     * 
     * @param id 频道管理主键
     * @return 结果
     */
    @Override
    public int deleteSysChannelById(Long id)
    {
        return sysChannelTwiceMapper.deleteSysChannelById(id);
    }

    @Override
    public int clearSysChannel() {
        return sysChannelTwiceMapper.clearSysChannel();
    }

    @Override
    public SysChannelTwice selectSysChannelByNameAndBoardId(String name,Long boardId) {
        return sysChannelTwiceMapper.selectSysChannelByNameAndBoardId(name,boardId);
    }

    @Override
    public SysChannelTwice selectSysChannelByName(String name) {
        return sysChannelTwiceMapper.selectSysChannelByName(name);
    }

    @Override
    public List<SysChannelTwice> selectSysChannelListByAndStatus(String status) {
        return sysChannelTwiceMapper.selectSysChannelListByAndStatus(status);
    }

    @Override
    public List<SysChannelTwice> selectSysChannelListByOrStatus(String status1,String status2) {
        return sysChannelTwiceMapper.selectSysChannelListByOrStatus(status1,status2);
    }

    @Override
    public List<SysChannelTwice> selectSysChannelListAndSelectStatus(SysChannelTwice sysChannelTwice) {
        return sysChannelTwiceMapper.selectSysChannelListAndSelectStatus(sysChannelTwice);
    }
}
